import request from './request'
/**
 * RESTful API
 */
export const get = async (url: string, data?) => {
  return await request(url, 'get', data)
}

export const post = async (url: string, data?) => {
  return await request(url, 'post', data)
}